package com.itheima.zy;

public class Text8 {
    public static void main(String[] args) {
        int year = 2050;
//        System.out.println(year + "年是否为闰年：" + (year % 4 == 0 && year % 100 != 0 || year % 400 == 0));
//        year = year % 4;
 System.out.println(year % 4 == 0 ?( year % 100 != 0 ? true : false):false);
//        System.out.println(year + "年是否为闰年：" + (year % 4 == 0 ? year % 100 != 0 ? "是": "否" : year % 400 == 0 ? "是": "否"));
//a? "":""


    }


}
